import request from '@/utils/request'

// 查询工艺流程列表
export function listProcessFlow(query) {
  return request({
    url: '/production/processFlow/list',
    method: 'get',
    params: query
  })
}

// 查询工艺流程详细
export function getProcessFlow(id) {
  return request({
    url: '/production/processFlow/' + id,
    method: 'get'
  })
}

// 新增工艺流程
export function addProcessFlow(data) {
  return request({
    url: '/production/processFlow',
    method: 'post',
    data: data
  })
}

// 修改工艺流程
export function updateProcessFlow(data) {
  return request({
    url: '/production/processFlow',
    method: 'put',
    data: data
  })
}

// 删除工艺流程
export function delProcessFlow(id) {
  return request({
    url: '/production/processFlow/' + id,
    method: 'delete'
  })
}
